package com.test.deencredit.activity_deencredit;

import android.os.Bundle;
import android.widget.TextView;

import com.test.deencredit.R;
import com.test.deencredit.base_deencredit.BaseActivity_deencredit;
import com.test.deencredit.config_deencredit.Constant_deencredit;
import com.test.deencredit.dialog_deencredit.CustomerServiceDialog_deencredit;
import com.test.deencredit.dialog_deencredit.LogoutDialog_deencredit;
import com.test.deencredit.util_deencredit.http_deencredit.HttpUtil_deencredit;

public class SettingActivity_deencredit extends BaseActivity_deencredit {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_setting_deencredit);
        page_deencredit = "SETTING";

        findViewById(R.id.as_ib_back).setOnClickListener(v -> onBackPressed());
        findViewById(R.id.as_ib_customerservice).setOnClickListener(v -> new CustomerServiceDialog_deencredit(this).show());

        TextView versionTv = findViewById(R.id.as_tv_version);
        versionTv.append(" "+ Constant_deencredit.APP_VERSION_NAME_deencredit);

        findViewById(R.id.as_btn_logout).setOnClickListener(v -> {
            HttpUtil_deencredit.getInstance_deencredit().saveBuriedPoint_deencredit(page_deencredit,"LOGOUT_CLICK","");
            new LogoutDialog_deencredit(this).show();
        });

    }
}